//package cn.ycl.system.other.study.rabbitmq;
//
//import org.springframework.amqp.core.AmqpTemplate;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//import java.util.Date;
//
///**
// * @author YuanChangliang
// */
//@Component
//public class Sender {
//     @Resource
//     AmqpTemplate rabbitTemplate;
//    public void send(){
//        String content = "hello" + new Date();
//        System.out.println("Sender:" +content);
//        rabbitTemplate.convertAndSend("QUEUE_HELLO", content);
//    }
//}